<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Messages:  Info Stories</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Messages">
<META NAME="description" CONTENT="Users to click on a headline and read a short description of the page, feature, or story.  They can click the button to instantly be sent there!  Great way to help your visitors get around your site!  (Don't forget to learn from the coding!)">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function linkDisplay(selection) {
if (selection=="1") {
document.form.info.value="Visit the Yahoo search engine!";
document.form.go.value="http://www.yahoo.com";
}
else if(selection=="2") {
document.form.info.value="Visit the Excite search engine!";
document.form.go.value="http://www.excite.com";
}
else if(selection=="3") {
document.form.info.value="Visit the Altavista search engine!";
document.form.go.value="http://www.altavista.com";
}
else if(selection=="4") {
document.form.info.value="Visit the Hotbot search engine!";
document.form.go.value="http://www.hotbot.com";
}
else if(selection=="5") {
document.form.info.value="Visit the Lycos search engine!";
document.form.go.value="http://www.lycos.com";
}
else if(selection=="6") {
document.form.info.value="Visit the Microsoft website!";
document.form.go.value="http://www.microsoft.com";
}
else {
document.form.info.value = "Visit the Adobe website!";
document.form.go.value="http://www.adobe.com";
   } 
}
function moreInfo() {
var page=document.form.go.value;
window.location=page;
}
// End -->
</script>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /messages/"><font color="#FF0000">Messages</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Info Stories</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td><font face=" helvetica,arial,geneva">
<br>
<br>
<!-- Description --><!--content_start-->

Users to click on a headline and read a short description of the page, feature, or story.  They can click the button to instantly be sent there!  Great way to help your visitors get around your site!  (Don't forget to learn from the coding!)<br><hr>
</td></tr>
</table>
<!--  Demonstration -->
<center>
<form name=form>
<table border=0 width=400>
<tr>
<td align=center><a href="javascript:linkDisplay(1);">Yahoo</a><br></td>
<td align=center><a href="javascript:linkDisplay(2);">Excite</a><br></td>
<td align=center><a href="javascript:linkDisplay(3);">Altavista</a><br></td>
</tr>
<tr>
<td align=center><a href="javascript:linkDisplay(4);">Hotbot</a><br></td>
<td align=center><a href="javascript:linkDisplay(5);">Lycos</a><br></td>
<td align=center><a href="javascript:linkDisplay(6);">Microsoft</a><br></td>
</tr>
<tr>
<td colspan=3 align=center>
<textarea name=info rows=2 cols=40 wrap=virtual>Click a topic above for more info!</textarea><br>
<input type=button name=button value="Go There!" onClick="moreInfo()">
<input type=hidden name=go value="">
</td></tr>
</table>
</form>
</center>
<P>
<BR>
<P>
<a name="source">
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Messages:  Info Stories</b>
<p>Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s).  The script is yours!<br><br></font></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  2.82 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- TWO STEPS TO INSTALL INFO STORIES:

   1.  Paste the first code into the HEAD of your HTML document  --&gt;

   2.  Add the last coding into the BODY of your HTML document  --&gt;

&lt;!-- STEP ONE: Paste the first code into the HEAD of your HTML document  --&gt;

&lt;HEAD&gt;

&lt;SCRIPT LANGUAGE="JavaScript"&gt;

&lt;! &gt;
&lt;! &gt;

&lt;!-- Begin
function linkDisplay(selection) {
if (selection=="1") {
document.form.info.value="Answers to the most common questions we receive are posted here for your review!";
document.form.go.value="http://javascript.internet.com/faq";
}
else if(selection=="2") {
document.form.info.value="Find out what's new since you last visited!  Stay up to date with us!";
document.form.go.value="http://javascript.internet.com/new.html";
}
else if(selection=="3") {
document.form.info.value="Subscribe to JavaScript Source's Newsletter to know when we add new scripts!";
document.form.go.value="http://e-newsletters.internet.com/javascriptsource.html";
}
else if(selection=="4") {
document.form.info.value="Post your question or problem here so other fellow JavaScripters can help you!";
document.form.go.value="http://javascript.internet.com/forum";
}
else if(selection=="5") {
document.form.info.value="Don't have time to cut & paste?\nTry our Email-a-Script feature!";
document.form.go.value="http://javascript.internet.com";
}
else if(selection=="6") {
document.form.info.value="Not sure where that particular JavaScript is?  Search our web site!";
document.form.go.value="http://javascript.internet.com/search";
}
else {
document.form.info.value = "For more information, please email us.";
document.form.go.value="http://javascript.internet.com/feedback.html";
   } 
}
function moreInfo() {
var page=document.form.go.value;
window.location=page;
}
// End --&gt;
&lt;/script&gt;
&lt;/HEAD&gt;

&lt;!-- STEP TWO: Add the last coding into the BODY of your HTML document  --&gt;

&lt;BODY&gt;

&lt;center&gt;
&lt;form name=form&gt;
&lt;table border=0 width=400&gt;
&lt;tr&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(1);"&gt;F.A.Q.'s&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(2);"&gt;What's New?&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(3);"&gt;Site Newsletter!&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(4);"&gt;JavaScript Forum&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(5);"&gt;"Email-a-Script"!&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;td align=center&gt;&lt;a href="javascript:linkDisplay(6);"&gt;Site Search Engine&lt;/a&gt;&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=3 align=center&gt;
&lt;textarea name=info rows=2 cols=40 wrap=virtual&gt;Click a topic above for more info!&lt;/textarea&gt;&lt;br&gt;
&lt;input type=button name=button value="Go There!" onClick="moreInfo()"&gt;
&lt;input type=hidden name=go value=""&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/center&gt;

 

&lt;!-- Script Size:  2.82 KB  --&gt;
</textarea><br><font face="helvetica,arial,geneva"></font></td></tr>

</table>
</form>
</FONT>
</CENTER>


</center>
</body></html>